package com.db.dbdocument.generateDB.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 数据库表信息
 */
public class DbTableInfoVo {

    /**
     * 表名
     */
    private String tableName;
    /**
     * 存储引擎
     */
    private String engine;
    /**
     * 表描述
     */
    private String tableComment;
    /**
     * 编码格式
     */
    private String tableCollation;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 表字段列表
     */
    private List<DbTableStructureInfoVo> dbTableStructureVoList = new ArrayList<>();

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getEngine() {
        return engine;
    }

    public void setEngine(String engine) {
        this.engine = engine;
    }

    public String getTableComment() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

    public String getTableCollation() {
        return tableCollation;
    }

    public void setTableCollation(String tableCollation) {
        this.tableCollation = tableCollation;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public List<DbTableStructureInfoVo> getDbTableStructureVoList() {
        return dbTableStructureVoList;
    }

    public void setDbTableStructureVoList(List<DbTableStructureInfoVo> dbTableStructureVoList) {
        this.dbTableStructureVoList = dbTableStructureVoList;
    }
}
